package ${beanPackage};

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.alibaba.fastjson.JSONArray;

import io.swagger.v3.oas.annotations.media.Schema;

import java.math.BigDecimal;
import java.util.List;

@lombok.Data
public class ${beanName?cap_first} {
	<#list columns as item>
	
	@Schema(description = "${item.columnRemark!item.javaCode}",required = ${item.nullAble?string("true","false")})
	@JSONField(name = "${item.columnCode}")
	@JsonProperty("${item.columnCode}")
	private <#switch item.javaType!>
			<#case "java.lang.String">String<#break>
			<#case "java.lang.Integer">Integer<#break>
			<#default>${item.javaType!}<#break>
			</#switch> ${item.javaCode!};
	</#list>
	
	<#list innerClass as clazz>
	
	@lombok.Data
	public static class ${clazz.beanName?cap_first}{
		<#list clazz.columns as item>
		
		@Schema(description = "${item.columnRemark!item.javaCode}")
		@JSONField(name = "${item.columnCode}")
		@JsonProperty("${item.columnCode}")
		private <#switch item.javaType!>
				<#case "java.lang.String">String<#break>
				<#case "java.lang.Integer">Integer<#break>
				<#default>${item.javaType!}<#break>
				</#switch> ${item.javaCode!};
		</#list>
	}
	</#list>
}